// 设计用户的表模型
const mongoose = require('mongoose')
const Schema = mongoose.Schema

// 随机评卷表结构
const UserSchema = new Schema({
  examFileName: {
      type: String,
      require: true
  },
  examName: {
      type: String,
      require: true
  },
  account: {
      type: String,
      require: true
  },
  subject: {
    type: String,
    require: true
},
  stuList: {
      type: String,
      require: true
  },
  isFinish: {
    type: String,
    require: true
  },
})

// 通过 mongoose.model 往数据库里面映射出一张User表
module.exports = mongoose.model('randomDivision', UserSchema)